package com.greatmay.service;

import javax.jws.WebService;
import javax.ws.rs.FormParam;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;

import com.greatmay.model.FileType;

/**
 * Web Service interface so hierarchy of Generic Manager isn't carried through.
 */
@WebService
@Path("/files")
@Produces("text/html")
public interface FileViewer {

    @POST
    @Path("{type}")
    String getHtml(@PathParam("type") FileType fileType, @FormParam("dir") String dir);
}
